import { showToast } from "@/store/toastSlice"
import { useDispatch } from "react-redux"

export default function Mine() {
    const dispatch = useDispatch()
    const change = () => {
        dispatch(showToast({ text: '修改成功', type: 'success' }))
    }
    return <>
        <div onClick={change}>修改密码</div>
    </>
}